package com.zhanghao.sdk.service;

import com.zhanghao.sdk.constant.ENUM_SERVICE;
public class ServiceFactory implements IServiceFactory {
    private static ServiceFactory instance;

    public static ServiceFactory getInstance() {
        if (instance == null) {
            instance = new ServiceFactory();
        }
        return instance;
    }


    @Override
    public BaseServiceImpl getService(ENUM_SERVICE enumService) {
        BaseServiceImpl service = null;
        switch (enumService) {
            case LOGIN:
                service = new LoginServiceImpl();
                break;
        }
        return service;
    }
}
